import Vue from "vue";
// 引入路由
import VueRouter from "vue-router";
// 引入路由页面
import find from '@/views/find';
import my from '@/views/my';
import like from '@/views/like';
import shopping from '@/views/shopping';
import music from '@/views/music';
import download from '@/views/download';
import NotFound from '../views/NotFound'

// 使用路由
Vue.use(VueRouter)
// 创建路由实例对象
const router = new VueRouter({
  linkActiveClass: 'aa',
  linkExactActiveClass: 'bb',
  mode: "history",
  routes: [
    {path:'/' , redirect:find},
    {path: '/find', component: find },
    {path:'/my',component:my},
    {path:'/like',component:like},
    {path:'/shopping',component:shopping},
    {path:'/music',component:music},
    { path: '/download', component: download },
    {path:'*',component:NotFound}
  ]
})
export default router
